const userMap = {
  admin: {
    username: 'admin',
    password: '123456'
  }
};

export default {
  login: config => {
    console.log(config);
    const { username } = JSON.parse(config.body);
    return userMap[username];
  }
};
